package createPattern.builder;

import createPattern.factory.model.Size;
import createPattern.factory.model.Sugar;
import createPattern.factory.model.Temp;

public class Client {

    public static void main(String[] args) {
        //创建一杯定制四季奶青
        MilkTea fourSeasonsMilk = new MilkTea.Builder("四季奶青").size(Size.GRANDE).temp(Temp.NOICE).sugar(Sugar.HALF).build();
        fourSeasonsMilk.show();

        //创建一杯定制波霸奶茶
        MilkTea bobaMilk = new MilkTea.Builder("波霸奶茶").size(Size.VENTI).temp(Temp.HOT).sugar(Sugar.MORE).build();
        bobaMilk.show();

        //创建一杯默认奶绿
        MilkTea milkGreen = new MilkTea.Builder("奶绿").build();
        milkGreen.show();
    }
}
